package cn.hyh.core.component;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;

/**
 * @auther :hyh
 * @desc :
 * @date :2019/7/22
 */
//动态的定时任务
@Configuration
public class TestDynScheuled {

    @Bean
    public  ThreadPoolTaskScheduler threadPoolTaskScheduler() {
        return new ThreadPoolTaskScheduler();
    }

}
